//
//  LoginViewController.h
//  SimpleTable
//
//  Created by seaway on 13-4-17.
//  Copyright (c) 2013年 seaway. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TPKeyboardAvoidingScrollView.h"
@class AppDelegate;
typedef enum
{
    //退出后再登录
    quitToLogin,
    //第一次登录
    oneTimeLogin
}loginType;
@interface LoginViewController : UIViewController<UITextFieldDelegate>
{
    TPKeyboardAvoidingScrollView* _loginView;
    UIButton *_loginButton;
    UIButton *_registerButton;
    UIImageView *_backView;
    UILabel* _nameLabel;
    UILabel* _pwdLabel;
    UITextField* _nameField;
    UITextField* _pwdField;
    UIButton *_forgetpwdBtn;
    UIButton *_autoLoginBtn;
    UILabel *_forgetpwdLab;
    UILabel *_autoLoginLab;
    UIView *_forgetpwdImg;
    UIImageView *loginhead;
    NSString *YesOrNoAuto;
    NSUserDefaults *defaults;
    BOOL isAutoLogin;
    loginType _type;
}
@property (retain, nonatomic) UITextField *nameField;
@property (retain, nonatomic) UITextField *pwdField;
@property (retain, nonatomic) UIImageView *backView;
@property (retain, nonatomic) UILabel *nameLabel;
@property (retain, nonatomic) UILabel *pwdLabel;
@property (retain, nonatomic) UIButton *loginButton;
@property (retain, nonatomic) UIButton *registerButton;
@property (retain, nonatomic) TPKeyboardAvoidingScrollView *loginView;
@property (retain, nonatomic) UIButton *forgetpwdBtn;
@property (retain, nonatomic) UIButton *autoLoginBtn;
@property (retain, nonatomic) UILabel *forgetpwdLab;
@property (retain, nonatomic) UILabel *autoLoginLab;
@property (retain, nonatomic) UIView *forgetpwdImg;
@property (retain, nonatomic) UIImageView *loginhead;
@property (retain, nonatomic) AppDelegate *delegate;
@property (nonatomic) loginType type;
@property (nonatomic) NSInteger IsHideTabBar;
@end
